#include <stdlib.h>
#include <checks.h>

struct client *findClient(int id, int gamecount, struct client *clients){
	int i;
	for(i = 0; i < gamecount; i++){
		if (clients[i].id == id){
			break;
		}
	}
	if (i == gamecount-1){
		return NULL;
	}
	return &clients[i];
}
